 {# src/Acme/DemoBundle/Resources/views/Random/index.html.twig #}

 {% extends '::base.html.twig' %}

 {% block body %}
    <h1>{{ post.title }}</h1>
    <p>{{ post.content }}</p>
    
    <div>
        <label>Comments</label>
        <textarea name="comment-text" id="comment-text"></textarea>
        <button id="comment" post-id="{{ post.id }}">Comment</button>   
    </div>

    <ul id="comment-lists">
        {{ render(url('comment_item', {'postId':post.id})) }}
    </ul>

    {% if hasMoreComments != false %}
    <button post-id="{{ post.id }}" id="more-comments-btn">More comments</button>
    {% endif %}
 {% endblock %}
